import {Object3D} from "./Object3D";
import {Ambient} from "./lights/Ambient";
import {PointLight} from "./lights/PointLight";

export class Scene {
    objects: Object3D[] = [];
    ambient?: Ambient;
    pointLights: PointLight[] = [];

    addObject(obj: Object3D) {
        if (obj instanceof Ambient) {
            this.ambient = obj;
        } else if ( obj instanceof PointLight) {
            this.pointLights.push(obj);
        } else {
            this.objects.push(obj);
        }
    }
}